<section class="content">
    <div class="container-2">
        <ul id="products" class="list clearfix">
            <?php while (wpsc_have_products()) : wpsc_the_product(); ?>
             <form class="product_form"   enctype="multipart/form-data" action="<?php echo get_page_link(31); ?>" 
                      method="post" name="product_<?php echo wpsc_the_product_id(); ?>" 
                      id="product_<?php echo wpsc_the_product_id(); ?>" >
                    <input type="hidden" name="page_id" value="31"/>
                    <input type="hidden" value="<?php echo wpsc_the_product_id(); ?>" name="product_id"/>
                    <input  type="submit"  value="<?php _e('Add To Cart', 'wpsc'); ?>" name="Buy" class="wpsc_buy_button a" id="product_<?php echo wpsc_the_product_id(); ?>_submit_button"/>
                </form>
                <li class="da-thumbs item">
                    <?php if (wpsc_show_thumbnails()) : ?>
                        <div class="product-thumb-hover">
                            <section class="left">
                                <a href="<?php echo esc_url(wpsc_the_product_permalink()); ?>" title="<?php echo wpsc_the_product_title(); ?>">
                                    <?php if (wpsc_the_product_thumbnail()) : ?>
                                        <img id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_thumbnail(); ?>">
                                    <?php else: ?>
                                        <img class="no-image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php esc_attr_e('No Image', 'wpsc'); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo WPSC_CORE_THEME_URL; ?>wpsc-images/noimage.png" width="<?php echo get_option('product_image_width'); ?>" height="<?php echo get_option('product_image_height'); ?>" />
                                    <?php endif; ?>
                                </a>
                                <p class="sale">Sale</p>
                                <?php
                                if (gold_cart_display_gallery()) :
                                    echo gold_shpcrt_display_gallery(wpsc_the_product_id(), true);
                                endif;
                                ?>
                            </section>
                        </div>
                    <?php endif; ?>
                    <section class="center">
                        <h3> <?php if (get_option('hide_name_link') == 1) : ?>
                                <?php echo wpsc_the_product_title(); ?>
                            <?php else: ?>
                                <a class="wpsc_product_title" href="<?php echo esc_url(wpsc_the_product_permalink()); ?>"><?php echo wpsc_the_product_title(); ?></a>
                            <?php endif; ?></h3>

                    </section>
                    <section class="right">
                        <span class="price" ><small><?php echo substr(wpsc_product_normal_price(), 0, -7); ?>VND&nbsp;</small>giảm còn&nbsp;&nbsp;<h5 class="price_new"><?php echo wpsc_calculate_price(wpsc_the_product_id()); ?>&nbsp; VND</h5></span>
                        <ul class="menu-button">
                            <li><a href="JavaScript:void(0);" onclick="return click_addtocart(<?php echo wpsc_the_product_id(); ?>);" class="cart tip" title="Mua Hàng"></a></li>
                            <li><a href="<?php $a= wpsc_the_product_image();echo $a[0]; ?>" rel="prettyPhoto[gallery2]" class="zoom tip" title="Phóng To"></a></li>
                            <li><a href="<?php echo esc_url(wpsc_the_product_permalink()); ?>" class="link tip" title="Chi Tiết"></a></li>
                        </ul>
                    </section>
                </li>
            <?php endwhile; ?>

        </ul><!--end:products-->
        <?php if (wpsc_has_pages_bottom()) : ?>
            <ul id="pagination">
                <?php wpsc_pagination(); ?>
            </ul>
        <?php endif; ?>
    </div>
</section>
